<include file="application/walletyhbbadmin/view/public/left.html"/>
<div id="dcMain">
   <!-- 当前位置 -->
<div id="urHere">管理中心<b>></b><strong>新闻中心</strong> </div>   <div class="mainBox" style="height:auto!important;height:550px;min-height:550px;">
            <h3>添加新闻<a href="{:U('Type/index')}" class="actionBtn">新闻列表</a></h3>
    <form action="{:U('Type/addType')}" method="post" enctype="multipart/form-data">
     <table width="100%" border="0" cellpadding="8" cellspacing="0" class="tableBasic">

      <tr>
       <td width="90" align="right">新闻标题(中)：</td>
       <td>
        <input type="text" id="title" name="title" value="" size="80" class="inpMain" />
         <!-- <input  name="article_id"  value="{$list.article_id}" type="hidden"></td> -->
       </td>
      </tr>
         <tr>
             <td width="90" align="right">新闻标题(英)：</td>
             <td>
                 <input type="text" id="utitle" name="utitle" value="" size="80" class="inpMain" />
                 <!-- <input  name="article_id"  value="{$list.article_id}" type="hidden"></td> -->
             </td>
         </tr>
         <tr>
             <td width="90" align="right">新闻标题(日)：</td>
             <td>
                 <input type="text" id="jtitle" name="jtitle" value="" size="80" class="inpMain" />
                 <!-- <input  name="article_id"  value="{$list.article_id}" type="hidden"></td> -->
             </td>
         </tr>
         <tr>
             <td width="90" align="right">新闻简介(中)：</td>
             <td>
                 <input type="text" id="content" name="content" value="" size="80" class="inpMain" />
             </td>
         </tr>
         <tr>
             <td width="90" align="right">新闻简介(英)：</td>
             <td>
                 <input type="text" id="ucontent" name="ucontent" value="" size="80" class="inpMain" />
             </td>
         </tr>
         <tr>
             <td width="90" align="right">新闻简介(日)：</td>
             <td>
                 <input type="text" id="jcontent" name="jcontent" value="" size="80" class="inpMain" />
             </td>
         </tr>
         <tr>
             <td width="90" align="right">新闻图片：</td>
             <td>
                 <input type="file" id="image" name="image" value="" size="80" class="inpMain" />&nbsp;<font style="color: #999999;">推荐上传110px * 100px</font>
             </td>
         </tr>
         <tr>
             <td width="90" align="right">内容标题(中)：</td>
             <td>
                 <input type="text" id="c_title" name="c_title" value="" size="80" class="inpMain" />
             </td>
         </tr>
         <tr>
             <td width="90" align="right">内容标题(英)：</td>
             <td>
                 <input type="text" id="c_utitle" name="c_utitle" value="" size="80" class="inpMain" />
             </td>
         </tr>
         <tr>
             <td width="90" align="right">内容标题(日)：</td>
             <td>
                 <input type="text" id="c_jtitle" name="c_jtitle" value="" size="80" class="inpMain" />
             </td>
         </tr>
         <tr>
             <td width="90" align="right">新闻内容(中)：</td>
             <td>
                 <!-- KindEditor -->
                 <link rel="stylesheet" href="__PUBLIC__/app/admin/js/kindeditor/themes/default/default.css" />
                 <link rel="stylesheet" href="__PUBLIC__/app/admin/js/kindeditor/plugins/code/prettify.css" />
                 <script charset="utf-8" src="__PUBLIC__/app/admin/js/kindeditor/kindeditor.js"></script>
                 <script charset="utf-8" src="__PUBLIC__/app/admin/js/kindeditor/lang/zh_CN.js"></script>
                 <script charset="utf-8" src="__PUBLIC__/app/admin/js/kindeditor/plugins/code/prettify.js"></script>
                 <script>
                     KindEditor.ready(function(K) {
                         var editor1 = K.create('textarea[name="c_content"]', {
                             cssPath : '../plugins/code/prettify.css',
                             uploadJson : '../php/upload_json.php',
                             fileManagerJson : '../php/file_manager_json.php',
                             allowFileManager : true,
                             afterCreate : function() {
                                 var self = this;
                                 K.ctrl(document, 13, function() {
                                     self.sync();
                                     K('form[name=example]')[0].submit();
                                 });
                                 K.ctrl(self.edit.doc, 13, function() {
                                     self.sync();
                                     K('form[name=example]')[0].submit();
                                 });
                             }
                         });
                         prettyPrint();
                     });
                 </script>
                 <!-- /KindEditor -->
                 <textarea id="c_content" name="c_content" style="width:780px;height:400px;" class="textArea"></textarea>
             </td>
         </tr>
         <tr>
             <td width="90" align="right">新闻内容(英)：</td>
             <td>
                 <!-- KindEditor -->
                 <link rel="stylesheet" href="__PUBLIC__/app/admin/js/kindeditor/themes/default/default.css" />
                 <link rel="stylesheet" href="__PUBLIC__/app/admin/js/kindeditor/plugins/code/prettify.css" />
                 <script charset="utf-8" src="__PUBLIC__/app/admin/js/kindeditor/kindeditor.js"></script>
                 <script charset="utf-8" src="__PUBLIC__/app/admin/js/kindeditor/lang/zh_CN.js"></script>
                 <script charset="utf-8" src="__PUBLIC__/app/admin/js/kindeditor/plugins/code/prettify.js"></script>
                 <script>
                     KindEditor.ready(function(K) {
                         var editor1 = K.create('textarea[name="c_ucontent"]', {
                             cssPath : '../plugins/code/prettify.css',
                             uploadJson : '../php/upload_json.php',
                             fileManagerJson : '../php/file_manager_json.php',
                             allowFileManager : true,
                             afterCreate : function() {
                                 var self = this;
                                 K.ctrl(document, 13, function() {
                                     self.sync();
                                     K('form[name=example]')[0].submit();
                                 });
                                 K.ctrl(self.edit.doc, 13, function() {
                                     self.sync();
                                     K('form[name=example]')[0].submit();
                                 });
                             }
                         });
                         prettyPrint();
                     });
                 </script>
                 <!-- /KindEditor -->
                 <textarea id="c_ucontent" name="c_ucontent" style="width:780px;height:400px;" class="textArea"></textarea>
             </td>
         </tr>
         <tr>
             <td width="90" align="right">新闻内容(日)：</td>
             <td>
                 <!-- KindEditor -->
                 <link rel="stylesheet" href="__PUBLIC__/app/admin/js/kindeditor/themes/default/default.css" />
                 <link rel="stylesheet" href="__PUBLIC__/app/admin/js/kindeditor/plugins/code/prettify.css" />
                 <script charset="utf-8" src="__PUBLIC__/app/admin/js/kindeditor/kindeditor.js"></script>
                 <script charset="utf-8" src="__PUBLIC__/app/admin/js/kindeditor/lang/zh_CN.js"></script>
                 <script charset="utf-8" src="__PUBLIC__/app/admin/js/kindeditor/plugins/code/prettify.js"></script>
                 <script>
                     KindEditor.ready(function(K) {
                         var editor1 = K.create('textarea[name="c_jcontent"]', {
                             cssPath : '../plugins/code/prettify.css',
                             uploadJson : '../php/upload_json.php',
                             fileManagerJson : '../php/file_manager_json.php',
                             allowFileManager : true,
                             afterCreate : function() {
                                 var self = this;
                                 K.ctrl(document, 13, function() {
                                     self.sync();
                                     K('form[name=example]')[0].submit();
                                 });
                                 K.ctrl(self.edit.doc, 13, function() {
                                     self.sync();
                                     K('form[name=example]')[0].submit();
                                 });
                             }
                         });
                         prettyPrint();
                     });
                 </script>
                 <!-- /KindEditor -->
                 <textarea id="c_jcontent" name="c_jcontent" style="width:780px;height:400px;" class="textArea"></textarea>
             </td>
         </tr>
       <tr>
             <td width="90" align="right">发布时间：</td>
             <td>
                 <input type="text" id="c_jtitle" name="c_time" value="" size="80" class="inpMain" />
             </td>
         </tr>
<!--      <tr>-->
<!--        <td width="90" align="right">是否首页显示：</td>-->
<!--        <td>-->
<!--          <input type="radio" value="1" name="is_show" id="1" checked="checked"/>是-->
<!--          <input type="radio" value="0" name="is_show" id="0"  />否-->
<!--        </td>-->
<!--      </tr>-->
     
      <tr>
       <td></td>
       <td>
        <input name="submit" class="btn" type="submit" value="提交" />
       </td>
      </tr>
     </table>
    </form>
       </div>
 </div>
 <div class="clear"></div>
<include file="application/walletyhbbadmin/view/public/foot.html"/><!-- dcFooter 结束 -->
<div class="clear"></div> </div>
 <script type="text/javascript">
 
 onload = function()
 {
   document.forms['action'].reset();
 }

 function douAction()
 {
     var frm = document.forms['action'];

     frm.elements['new_cat_id'].style.display = frm.elements['action'].value == 'category_move' ? '' : 'none';
 }
 
 </script>
</body>
</html>